/**
 * 
 */
package game.checkers;

import game.Player;

/**
 * @author Pedro
 *
 */
public class Piece {
	
	
	public static enum Color {Gray,Orange}
	public static enum Type {Queen,Normal}
	
	private Color color; 
	private Type type; 
	private Player player;
	
	public Piece(Player player, Color color, Type type){
		this.color =color;
		this.setPlayer(player);
		this.setType(type);
	}
	
	/**
	 * @param player the player to set
	 */
	public void setPlayer(Player player) {
		this.player = player;
	}

	/**
	 * @return the player
	 */
	public Player getPlayer() {
		return player;
	}

	/**
	 * @return the color
	 */
	public Color getColor() {
		return color;
	}

	/**
	 * @param color the color to set
	 */
	public void setColor(Color color) {
		this.color = color;
	}

	/**
	 * @return the type
	 */
	public Type getType() {
		return type;
	}
	public int getMyDirection(){
		if (this.color == Color.Orange)
			return 1;
		else return -1;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(Type type) {
		this.type = type;
	}
	
}
